package com.xhj.xmly.utils;

import android.databinding.BindingAdapter;
import android.widget.ImageView;

import com.squareup.picasso.Picasso;

/**
 * Created by Administrator on 2016/12/4.
 */

public class LoadImage {
    @BindingAdapter("loadUrl")
    public static void loadImage(ImageView view,String url){
        Picasso.with(view.getContext())
                .load(url)
                .into(view);
    }
}
